fileName = 'output.csv';
delete(fileName);

input_files = dir(fullfile('data/cartoon/'));
for i = 1:size(input_files,1)
    name = input_files(i).name;
    if name(1) ~= '.'
        fid = fopen(fileName, 'at');
        %fprintf(fid, '%s\n', name);               
        info = Process(strcat('data/cartoon/', name));        
        %info = [info 'c'];
        for i=1:size(info,2)
            %dlmwrite(fileName, info, '-append', 'delimiter', ',');                
            fprintf(fid, '%f,', info(1,i));            
        end
        fprintf(fid, '%s\n', 'cartoon');
        %fprintf(fid, '%s\n', name);
        fclose(fid); 
        %display(info);
    end
end
